package com.yh.correct.model;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;


/**
 * 矫正人员表
 * 
 * @author 王卫
 *
 */
public class CorrectedPerson {
	/**
	 * 编号
	 */
	private int id;
	/**
	 * 姓名
	 */
	@NotBlank(message="姓名不能为空!")
	private String name;
	/**
	 * 证件类型
	 */
	private String paperstype;
	/**
	 * 证件号
	 */
	private String papersnum;
	/**
	 * 性别
	 */
	private String sex;
	/**
	 * 曾用名
	 */
	private String oldname;
	/**
	 * 照片
	 */
	private String photo;
	/**
	 * 生日
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date birthday;
	/**
	 * 民族
	 */
	private String nation;
	/**
	 * 文化程度
	 */
	private String education;
	/**
	 * 原政治面貌
	 */
	private String zz_status;
	/**
	 * 婚姻状况
	 */
	private String marriage;
	/**
	 * 职业
	 */
	private String occupation;
	/**
	 * 户籍
	 */
	private String domicile;
	/**
	 * 籍贯
	 */
	private String native_place;
	/**
	 * 执行类别
	 */
	private String zx_type;
	/**
	 * 监管级别
	 */
	private String jg_rank;
	/**
	 * 居住地址
	 */
	private String address;
	/**
	 * 填写人
	 */
	private String operator;
	/**
	 * 填写单位
	 */
	private String org;
	/**
	 * 判决书号
	 */
	private String judnum;
	/**
	 * 判决日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date juddate;
	/**
	 * 判决机关
	 */
	private String judbody;
	/**
	 * 原判刑期
	 */
	private String yp_date;
	/**
	 * 附加刑
	 */
	private String addition;
	/**
	 * 罪名
	 */
	private String charge;
	/**
	 * 判决处罚
	 */
	private String punish;
	/**
	 * 刑期器
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date x_startdate;
	/**
	 * 刑期止
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date x_enddate;
	/**
	 * 入矫日期
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date j_enterdate;
	/**
	 * 矫正期限起
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date j_startdate;
	/**
	 * 矫正期限止
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date j_enddate;
	/**
	 * 活动区域
	 */
	private String area;
	/**
	 * 就业情况
	 */
	private String job;
	/**
	 * 固定电话
	 */
	private String phonenum;
	/**
	 * 奖罚情况
	 */
	private String reward;
	/**
	 * 刑期变动
	 */
	private String x_changedate;
	/**
	 * 状态
	 */
	private String state;
	/**
	 * 矫正单位
	 */
	private Integer jid;
	
	/**
	 * 户籍类型
	 */
	private String domicile_type;
	
	

	public String getDomicile_type() {
		return domicile_type;
	}

	public void setDomicile_type(String domicile_type) {
		this.domicile_type = domicile_type;
	}

	/**
	 * 矫正工作人员
	 * 
	 * @return
	 */
	private int pid;

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPaperstype() {
		return paperstype;
	}

	public void setPaperstype(String paperstype) {
		this.paperstype = paperstype;
	}

	public String getPapersnum() {
		return papersnum;
	}

	public void setPapersnum(String papersnum) {
		this.papersnum = papersnum;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getOldname() {
		return oldname;
	}

	public void setOldname(String oldname) {
		this.oldname = oldname;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	public String getEducation() {
		return education;
	}

	public void setEducation(String education) {
		this.education = education;
	}

	public String getZz_status() {
		return zz_status;
	}

	public void setZz_status(String zz_status) {
		this.zz_status = zz_status;
	}

	public String getMarriage() {
		return marriage;
	}

	public void setMarriage(String marriage) {
		this.marriage = marriage;
	}

	public String getOccupation() {
		return occupation;
	}

	public void setOccupation(String occupation) {
		this.occupation = occupation;
	}

	public String getDomicile() {
		return domicile;
	}

	public void setDomicile(String domicile) {
		this.domicile = domicile;
	}

	public String getNative_place() {
		return native_place;
	}

	public void setNative_place(String native_place) {
		this.native_place = native_place;
	}

	public String getZx_type() {
		return zx_type;
	}

	public void setZx_type(String zx_type) {
		this.zx_type = zx_type;
	}

	public String getJg_rank() {
		return jg_rank;
	}

	public void setJg_rank(String jg_rank) {
		this.jg_rank = jg_rank;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getOrg() {
		return org;
	}

	public void setOrg(String org) {
		this.org = org;
	}

	public String getJudnum() {
		return judnum;
	}

	public void setJudnum(String judnum) {
		this.judnum = judnum;
	}

	public Date getJuddate() {
		return juddate;
	}

	public void setJuddate(Date juddate) {
		this.juddate = juddate;
	}

	public String getJudbody() {
		return judbody;
	}

	public void setJudbody(String judbody) {
		this.judbody = judbody;
	}

	public String getYp_date() {
		return yp_date;
	}

	public void setYp_date(String yp_date) {
		this.yp_date = yp_date;
	}

	public String getAddition() {
		return addition;
	}

	public void setAddition(String addition) {
		this.addition = addition;
	}

	public String getCharge() {
		return charge;
	}

	public void setCharge(String charge) {
		this.charge = charge;
	}

	public String getPunish() {
		return punish;
	}

	public void setPunish(String punish) {
		this.punish = punish;
	}

	public Date getX_startdate() {
		return x_startdate;
	}

	public void setX_startdate(Date x_startdate) {
		this.x_startdate = x_startdate;
	}

	public Date getX_enddate() {
		return x_enddate;
	}

	public void setX_enddate(Date x_enddate) {
		this.x_enddate = x_enddate;
	}

	public Date getJ_enterdate() {
		return j_enterdate;
	}

	public void setJ_enterdate(Date j_enterdate) {
		this.j_enterdate = j_enterdate;
	}

	public Date getJ_startdate() {
		return j_startdate;
	}

	public void setJ_startdate(Date j_startdate) {
		this.j_startdate = j_startdate;
	}

	public Date getJ_enddate() {
		return j_enddate;
	}

	public void setJ_enddate(Date j_enddate) {
		this.j_enddate = j_enddate;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public String getPhonenum() {
		return phonenum;
	}

	public void setPhonenum(String phonenum) {
		this.phonenum = phonenum;
	}

	public String getReward() {
		return reward;
	}

	public void setReward(String reward) {
		this.reward = reward;
	}

	public String getX_changedate() {
		return x_changedate;
	}

	public void setX_changedate(String x_changedate) {
		this.x_changedate = x_changedate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Integer getJid() {
		return jid;
	}

	public void setJid(Integer jid) {
		this.jid = jid;
	}

	@Override
	public String toString() {
		return "CorrectedPerson [id=" + id + ", name=" + name + ", paperstype=" + paperstype + ", papersnum="
				+ papersnum + ", sex=" + sex + ", oldname=" + oldname + ", photo=" + photo + ", birthday=" + birthday
				+ ", nation=" + nation + ", education=" + education + ", zz_status=" + zz_status + ", marriage="
				+ marriage + ", occupation=" + occupation + ", domicile=" + domicile + ", native_place=" + native_place
				+ ", zx_type=" + zx_type + ", jg_rank=" + jg_rank + ", address=" + address + ", operator=" + operator
				+ ", org=" + org + ", judnum=" + judnum + ", juddate=" + juddate + ", judbody=" + judbody + ", yp_date="
				+ yp_date + ", addition=" + addition + ", charge=" + charge + ", punish=" + punish + ", x_startdate="
				+ x_startdate + ", x_enddate=" + x_enddate + ", j_enterdate=" + j_enterdate + ", j_startdate="
				+ j_startdate + ", j_enddate=" + j_enddate + ", area=" + area + ", job=" + job + ", phonenum="
				+ phonenum + ", reward=" + reward + ", x_changedate=" + x_changedate + ", state=" + state + ", jid="
				+ jid + ", domicile_type=" + domicile_type + ", pid=" + pid + "]";
	}



	
}
